<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>区块链物流系统 - 角色选择</title>
    <!-- Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- Font Awesome -->
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <!-- 配置Tailwind CSS自定义颜色和字体 -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#3B82F6', // 蓝色主色调
                        secondary: '#10B981', // 绿色辅助色
                        accent: '#6366F1', // 紫色强调色
                        dark: '#1E293B', // 深色
                        light: '#F8FAFC' // 浅色
                    },
                    fontFamily: {
                        inter: ['Inter', 'system-ui', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    <style>
        /* 全局样式 */
        body {
            background-color: #f8fafc;
            background-image: radial-gradient(#e2e8f0 1px, transparent 1px), radial-gradient(#e2e8f0 1px, transparent 1px);
            background-size: 50px 50px;
            background-position: 0 0, 25px 25px;
        }
        /* 动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .animate-fadeIn {
            animation: fadeIn 0.6s ease-out forwards;
        }
        .card-hover {
            transition: all 0.3s ease-in-out;
        }
        .card-hover:hover {
            transform: translateY(-5px);
        }
        .btn-hover {
            transition: all 0.3s ease-in-out;
        }
        .btn-hover:hover {
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }
    </style>
</head>
<body class="font-inter min-h-screen">
    <!-- 主容器 -->
    <div class="container mx-auto px-4 py-12">
        <!-- 标题区域 -->
        <div class="text-center mb-12 animate-fadeIn">
            <h1 class="text-[clamp(1.8rem,4vw,2.5rem)] font-bold text-dark mb-4">
                <i class="fa fa-chain-broken text-3xl mr-3 text-primary"></i>区块链物流系统
            </h1>
            <p class="text-gray-600 text-lg">请选择您的角色以继续</p>
        </div>

        <!-- 角色选择卡片容器 -->
        <div class="max-w-5xl mx-auto grid grid-cols-1 md:grid-cols-2 gap-8">
            <!-- 用户卡片 -->
            <div class="bg-white rounded-xl shadow-lg p-6 hover:shadow-xl card-hover animate-fadeIn" style="animation-delay: 0.1s;">
                <div class="text-center">
                    <div class="w-20 h-20 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-4">
                        <i class="fa fa-user-circle text-4xl text-primary"></i>
                    </div>
                    <h2 class="text-xl font-bold text-dark mb-3">用户</h2>
                    <p class="text-gray-600 mb-4">区块链物流系统的普通用户</p>
                    <ul class="text-left space-y-2 mb-6">
                        <li class="flex items-center text-gray-700">
                            <i class="fa fa-check-circle text-green-500 mr-2"></i>创建物流订单
                        </li>
                        <li class="flex items-center text-gray-700">
                            <i class="fa fa-check-circle text-green-500 mr-2"></i>跟踪物流状态
                        </li>
                        <li class="flex items-center text-gray-700">
                            <i class="fa fa-check-circle text-green-500 mr-2"></i>查看物流详情
                        </li>
                        <li class="flex items-center text-gray-700">
                            <i class="fa fa-check-circle text-green-500 mr-2"></i>确认收货
                        </li>
                    </ul>
                    <a href="user_login.html" class="bg-primary text-white px-6 py-2 rounded-lg hover:bg-primary/90 btn-hover">
                        <i class="fa fa-sign-in mr-2"></i>登录/注册
                    </a>
                </div>
            </div>

            <!-- 承运商卡片 -->
            <div class="bg-white rounded-xl shadow-lg p-6 hover:shadow-xl card-hover animate-fadeIn" style="animation-delay: 0.2s;">
                <div class="text-center">
                    <div class="w-20 h-20 bg-secondary/10 rounded-full flex items-center justify-center mx-auto mb-4">
                        <i class="fa fa-truck text-4xl text-secondary"></i>
                    </div>
                    <h2 class="text-xl font-bold text-dark mb-3">承运商</h2>
                    <p class="text-gray-600 mb-4">区块链物流系统的承运商用户</p>
                    <ul class="text-left space-y-2 mb-6">
                        <li class="flex items-center text-gray-700">
                            <i class="fa fa-check-circle text-green-500 mr-2"></i>查看待接订单
                        </li>
                        <li class="flex items-center text-gray-700">
                            <i class="fa fa-check-circle text-green-500 mr-2"></i>接收物流订单
                        </li>
                        <li class="flex items-center text-gray-700">
                            <i class="fa fa-check-circle text-green-500 mr-2"></i>更新物流状态
                        </li>
                        <li class="flex items-center text-gray-700">
                            <i class="fa fa-check-circle text-green-500 mr-2"></i>完成物流配送
                        </li>
                    </ul>
                    <a href="carrier_login.html" class="bg-secondary text-white px-6 py-2 rounded-lg hover:bg-secondary/90 btn-hover">
                        <i class="fa fa-sign-in mr-2"></i>登录/注册
                    </a>
                </div>
            </div>
        </div>

        <!-- 页脚 -->
        <div class="text-center mt-16 text-gray-500 text-sm">
            <p>© 2024 区块链物流系统 | <a href="README.md" class="hover:text-primary">项目说明</a></p>
        </div>
    </div>
</body>
</html>